<?php
	class session
	{
		public function __construct()
		{
			session_start();
		}
	
        public function set($name, $value)
        {
            $_SESSION[$name] = $value;
        }

        public function get($name)
        {
            if ( !isset($_SESSION[$name]) )
            {
                return null;
            }

            return $_SESSION[$name];
        }
		
		public function clean()
		{
			session_destroy();
			$_SESSION = array();
		}
	}
